﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using QLCONGNOAPPs.UserForms.Customers;
using QLCONGNOLIBS.Models.EntityFW;
using QLCONGNOLIBS.Controllers;
using QLCONGNOLIBS.Securities;
using DevExpress.XtraEditors;

namespace QLCONGNOAPPs.UserControls
{
    public partial class RightForms : UserControl
    {
        protected SqlConnection m_objConnection;
        protected SecurityEntity m_objSecurity;
        protected CustomerControllers m_objCusController;
        protected EmployeeControllers m_objEmpController;
        protected CityControllers m_objCityController;
        protected ICustomer m_objCustomer;
        protected DataTable m_objTable;

        public RightForms(SqlConnection objConnection, SecurityEntity objSecurity)
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;
            m_objConnection = objConnection;
            m_objSecurity = objSecurity;
            m_objCusController = new CustomerControllers(m_objConnection, m_objSecurity);
            m_objEmpController = new EmployeeControllers(m_objConnection, m_objSecurity);
            m_objCityController = new CityControllers(m_objConnection, m_objSecurity);
            m_objCustomer = new ICustomer();            
        }
        public RightForms()
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;
        }
        protected virtual void Reload(){}
        protected virtual void EmbeddedNavigator_ButtonClick(object sender, NavigatorButtonClickEventArgs e) { }
    }
}
